import request from '~/utils/request'

export default {

  /**
   * 注册
   * @param {*} member
   * @returns
   */
  login(login) {
    return request({
      baseURL: "http://localhost:9110",
      url: '/service-member/api/member/login',
      method: 'post',
      data: login
    })
  },
  getUserInfo() {
    return request({
      baseURL: "http://localhost:9110",
      url: '/service-member/api/member/getUserInfoByToken',
      method: 'post',
      // headers: {
      //   'token': token
      // }
    })
  }
}
